package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@NoArgsConstructor
@AllArgsConstructor
@Data
/**
 * 处方实体类
 */
public class Prescription {
    //主键
    private int prescriptionId;
    //患者id（外键）一对一关系
    private int patientId;
    private Patient patient;
    //处方编号medicine
    private String prescriptionNo;
    //病情描述
    private String conditionDetails;
    //开具处方时间
    private Date prescriptionTime;
    //医生Id（外键）//一对一关系
    private int doctorId;
    private Doctor doctor;
    //处方总额
    private BigDecimal totalprice;
    //处方状态
    private int prescriptionStatus;
    //支付时间
    private Date payTime;
    //挂号单主键
    private Integer registerId;
    //挂号单实体
    private RegisterMessage registerMessage;
    //药品处方条目集合
    private List<DrugItem> drugItems;
    //检查处方条目集合
    private List<InspectItem> inspectItems;
    //挂号费
    private BigDecimal registerCost;
}
